package com.chaosyeb.server.controller;

import com.chaosyeb.server.pojo.Nation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description : 测试
 * @Author : Chaos
 * @Date : 2021/12/6 15:09
 * @Version : 1.0
 **/
@RestController
public class HelloController {

    @GetMapping("hello")
    public String hello(){
        return "hello";
    }

    @GetMapping("/employee/basic/hello")
    public String hello2(Nation nation){
        System.out.println(nation.toString());
        return "/employee/basic/**";
    }

    @GetMapping("/employee/advanced/hello")
    public String hello3(){
        return "/employee/basic/**";
    }
}
